use tauri::Window;

#[tauri::command]
pub async fn set_window_title(window: Window, title: String) -> Result<(), String> {
    window
        .set_title(&title)
        .map_err(|e| format!("Failed to set window title: {}", e))
}